export default function fn() {
    let arr = [10, 10, 20, 20, 30, 10, 20];
    let str = [];
    arr.forEach((item, index) => {
        if (!str.includes(item)) {
            str.push(item);
        }
    })
    return str;//[10,20,30]
}